export default {
	toReg() {
		uni.getUserInfo({
			success: (res) => {
				this.avatarUrl = res.userInfo.avatarUrl
				this.nickName = res.userInfo.nickName
				uni.navigateTo({
					url: '/pages/publics/registered?avatarUrl='+ this.avatarUrl+'&nickName='+this.nickName
				})
			},
			fail: () => {
				console.log("未授权");
			}
		})

		
	},
	toLogin() {
		uni.navigateTo({
			url: '/pages/publics/login'
		})
	}
}